package com.ifnk.portaljava.dapWeb.common;

import java.util.Locale;
import java.util.ResourceBundle;

public class Constants {
	public static final String USER_KEY = "user_key";
	public static final int SESSIONID_LEN = 32;
	public static final int CAUSE_LEN = 4 ;
	public static final int XML_LEN = 4;
	public static final int PROTOCOL_LEN = 1;
	public static final int SVRID_LEN = 4;
	public static final int CDRID_LEN = 4;
	public static final int CDRENDFLAG = 1;
	public static final int SEQUENCENO_LEN = 4;
	public static final int STARTTIME = 4;
	public static final int ENDTIME = 4;
	public static final int PACKETHEADER_LEN = 20;
	public static final int SESSIONID_LEN_FLAG = 1;
	//RawData
	public static final int SESSIONID_INDEX = PACKETHEADER_LEN + SESSIONID_LEN_FLAG;
	public static final int PROTOCOL_INDEX = SESSIONID_INDEX + SESSIONID_LEN;
	public static final int SVRID_INDEX = PROTOCOL_INDEX + PROTOCOL_LEN;
	public static final int CDRID_INDEX = SVRID_INDEX + SVRID_LEN;
	public static final int CDRENDFLAG_INDEX = CDRID_INDEX + CDRID_LEN;
	public static final int SEQUENCENO_INDEX = CDRENDFLAG_INDEX + CDRENDFLAG;
	public static final int PKT_INDEX = SEQUENCENO_INDEX + SEQUENCENO_LEN;
	//CDRData
	public static final int CDR_LEN_INDEX = SESSIONID_INDEX + SESSIONID_LEN;
	public static final int CDR_INDEX = CDR_LEN_INDEX + XML_LEN;
	
//	public static boolean zipFlag = false;
	
	public static Locale locale = Locale.ENGLISH;
	public static boolean zipFlag = Boolean.valueOf((ResourceBundle.getBundle("Socket",locale)).getString("zipFlag"));
}
